Skip to content

feat(aggregator): consume GitHub hot list in activity stream (#7084) - #7867

Merged
dezren39 merged 5 commits into
mainfrom
queue/12628-7084-github-activity-impl
Nov 14, 2026
Merged

dezren39 merged 5 commits into
mainfrom
queue/12628-7084-github-activity-impl

Conversation

@dezren39

@dezren39 dezren39 commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Summary

The aggregator now consumes the projector's #5204 hot list as a fixed-high-water sweep:

GET persisted consumer cursor
  page hot-list rows up to one pinned high-water
  map each event_id to activity:github:<event_id>
  persist rows + local progress
  ack the remote cursor only after the sweep is complete

GitHub source status and time-ranged gaps are visible on /events and /api/activity.json; the API explicitly reports completeHistory: false. Coverage is limited to retained hot-list rows. Missed upstream webhook deliveries and pre-hot-list history remain unsupported. The installer copies only PM_PROJECTOR_API_TOKEN into the aggregator environment for checkpoint acknowledgements.

Evidence

  • Before: GitHub coverage was marked unsupported and had no aggregator hot-list consumer.
  • After: duplicate replay, restart recovery, partial-sweep resume, outage/lag/unrecoverable-gap tests; targeted tests: 40 passed.
  • bash -n pm-stack/aggregator/install.sh and git diff --check pass.
  • Full aggregator suite: 1802 passed, 18 failed in this local environment. Most failures were server tests colliding with the already-running service on port 4871; four unrelated existing expectations also failed. bun run typecheck reports three existing test errors in roadmap-annotations.test.ts and saas-extract-surrogate-7743.test.ts; no errors were reported in the changed code.

Merge Danger

Door: Two-way.

Blast Radius: medium — additive GitHub-source consumption and status only; no receiver or projector schema change. PR #7285 is still open and overlaps shared activity files, so reconcile/merge ordering with that PR before landing; this branch does not modify #7285.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 9, 2026 00:02
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a43b559-2817-489c-a350-a7a78fcaf2a8
Commits

Reviewing files that changed from the base of the PR and between 1c33c50 and ce0b3a4.

Files selected for processing: 9

  • pm-stack/aggregator/README.md
  • pm-stack/aggregator/install.sh
  • pm-stack/aggregator/src/activity.ts
  • pm-stack/aggregator/src/config.ts
  • pm-stack/aggregator/src/github-hot-list.ts
  • pm-stack/aggregator/src/server.ts
  • pm-stack/aggregator/test/activity-3321.test.ts
  • pm-stack/aggregator/test/activity-github-7084.test.ts
  • pm-stack/aggregator/test/config.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T22:04:03.255839Z
We couldn’t complete this review. Comment @codex review to try again.
ce0b3a4 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 36040f97da

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pm-stack/aggregator/src/activity.ts Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
state: picked-up
task: 17277
lane: code-d
worker: repo-worker-code
What: Shepherding PR #7867 (feat(aggregator): consume GitHub hot list in activity stream, #7084). Verified fresh: PR OPEN, head 71ceb92, no labels / no hard stops; issue #7084 OPEN; the change is NOT on main (pm-stack/aggregator/src/github-hot-list.ts absent) and no other PR references #7084. Branch is 4 ahead / 2574 behind main, so it needs a main merge before it can land; old-head check failures (fleet-search parity, scripts-test) are unrelated workflows from the old base.
Next: merge main into the PR branch in a laptop worktree, resolve conflicts, run the targeted aggregator tests (activity-3321, activity-github-7084, config), push, then merge.

@dezren39 dezren39 added queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state work/assigned Queue worker lifecycle state labels Nov 14, 2026
…ub-activity-impl

# Conflicts:
#	pm-stack/aggregator/install.sh
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
state: merge-ready
task: 17277
lane: code-d
worker: repo-worker-code
What: PR #7867 brought current and verified. Merged current main into the PR branch (merge commit ce0b3a4, pushed). Single conflict: pm-stack/aggregator/install.sh — resolved keeping BOTH sides (the PR's PROJECTOR_ENV for the PM_PROJECTOR_API_TOKEN copy, and main's logical-parent UNIT_SRC resolution); bash -n clean. Targeted tests on the merged tree: bun test activity-github-7084 + activity-3321 + config = 56 pass / 0 fail. PR mergeable=true / clean; new-head checks complete (CodeRabbit NEUTRAL, dependabot SUCCESS). Codex gate: reviews failed on Codex account usage limits with zero findings delivered — no finding exists to disposition; merging on local verification per fleet rules (CI runs on main only).
Next: merge PR #7867, verify issue #7084, complete task 17277.

@dezren39
dezren39 merged commit 9a56ac0 into main Nov 14, 2026
2 checks passed
@dezren39
dezren39 deleted the queue/12628-7084-github-activity-impl branch November 14, 2026 22:06
@dezren39 dezren39 removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state work/assigned Queue worker lifecycle state labels Nov 14, 2026
@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
state: done
task: 17277
lane: code-d
worker: repo-worker-code
What: PR #7867 MERGED — merge commit 9a56ac0. Issue #7084 CLOSED with the acceptance evidence; #3321 re-check note posted naming its two remaining items (e2e backfill gap-status pass; flake issue #10385, filed this shift for the intermittent generated-schedules test failure).
Next: none — task 17277 completes as fixed_merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant